package com.enki.cigarettes.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @ClassName BrandCategoryT
 * @Description TODO
 * @Author glory
 * @Date 2018/10/26 17:00
 * @Version 1.0
 **/

@Entity
@Table(name = "brand_category_t")
public class BrandCategoryT{
    private String id;
    private String brandId;
    private String categoryId;
    private boolean removed;

    public BrandCategoryT() {
    }

    public BrandCategoryT(String id, String brandId, String categoryId) {
        this.id = id;
        this.brandId = brandId;
        this.categoryId = categoryId;
    }
    @Id
    @Column(name = "id", unique = true, nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "brand_id", nullable = false, length = 25)
    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    @Column(name = "category_id", nullable = false, length = 25)
    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    @Column(name = "removed", nullable = false)
    public boolean isRemoved() {
        return removed;
    }

    public void setRemoved(boolean removed) {
        this.removed = removed;
    }
}
